﻿using Newtonsoft.Json;
using Pay.Core;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO
{
    /// <summary>
    /// 用户参与比赛竞猜记录表 mc_UserGuessPlayingHis
    /// </summary>
    [Serializable]
    [JsonObject(MemberSerialization.OptOut)]
    public class user_guess_playing_his_dto
    {
        /// <summary>
        /// 用户参与比赛竞猜记录Id
        /// </summary>
        public long id { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long user_id { get; set; }

        /// <summary>
        /// 比赛Id
        /// </summary>
        public long playing_id { get; set; }

        /// <summary>
        /// 竞猜获胜队伍Id（0则为平局）
        /// </summary>
        public long guess_team_id { get; set; }

        /// <summary>
        /// 竞猜次数
        /// </summary>
        public int guess_num { get; set; }

        /// <summary>
        /// 所消耗的红钻总数
        /// </summary>
        public decimal consume_red_drill { get; set; }

        /// <summary>
        /// 所获得的红钻总数（开奖后不为空，若竞猜正确，则大于0，且包括消耗的红钻数）
        /// </summary>
        public decimal? get_red_drill { get; set; }

        /// <summary>
        /// 参与竞猜时间
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 用户信息
        /// </summary>
        public virtual merchant_dto merchant { get; set; }
        /// <summary>
        /// 赛事
        /// </summary>
        public virtual playing_dto playing { get; set; }
        /// <summary>
        /// 竞猜获胜队
        /// </summary>
        public virtual playing_team_dto guess_team { get; set; }
    }
    /// <summary>
    /// 用户竞猜
    /// </summary>
    [Serializable]
    [JsonObject(MemberSerialization.OptOut)]
    public class user_guess_dto {
        [JsonIgnore]
        public long user_id { get; set; }
        public long play_id { get; set; }
        public int num { get; set; }
        public long team_id { get; set; }
    }
   
}
